//
//  ViewOfzhuyiHeader.m
//  project-A (pianke)
//
//  Created by dllo on 16/3/2.
//  Copyright © 2016年 scott. All rights reserved.
//

#import "ViewOfzhuyiHeader.h"
#import <DKNightVersion.h>
@interface ViewOfzhuyiHeader ()

@property (nonatomic,retain)UILabel *labelname;

@property (nonatomic,retain)UIImageView *image;

@end


@implementation ViewOfzhuyiHeader

-(void)dealloc{
    
    [_labelname release];
    [_image release];
    [super dealloc];
    
}

-(instancetype)initWithFrame:(CGRect)frame Title:(NSString *)string{
    
    self = [super init];
    if (self) {
        self.labelname = [[UILabel alloc]init];
        self.labelname.text = string;
        self.labelname.frame = CGRectMake(25, 5, frame.size.width - 85, frame.size.height - 10);
        
        self.labelname.textAlignment = 1;
        
        self.dk_backgroundColorPicker = DKColorWithColors([UIColor whiteColor],  [UIColor colorWithRed:0.16 green:0.14 blue:0.13 alpha:1]);
        
        self.labelname.dk_textColorPicker = DKColorWithColors([UIColor blackColor], [UIColor whiteColor]);
        
        [self addSubview:self.labelname];
        [self.labelname release];
        
        
        UIView *viewLine = [[UIView alloc] initWithFrame:CGRectMake(18, 2, 2, 46)];
        viewLine.backgroundColor = [UIColor blueColor];
        
        [self addSubview:viewLine];
        [viewLine release];

        
    }
    
    return self;
}


@end
